<template>
	<view class="content-box">
		<template v-for="(item,index) in imgsData" :key="index">
			<view class="img-box">
				<image :src="item" mode="widthFix" @click="previewImage(index)" ></image>
			</view>
		</template>
	</view>
</template>

<script>
	export default {
		name:"wjf-product-imglist",
		props: {
			imgsData: {
				type: Array,
				default: () => {
					return []
				}
			}
		},
		data() {
			return {
				
			};
		},
		methods:{
			previewImage(index) {
				uni.previewImage({
					urls: this.imgsData,
					current:index
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
.content-box{
	width: 100%;
	.img-box{
		width: 100%;
		image{
			margin: 0rpx 20rpx;
			width: calc(100% - 40rpx);
			border-radius: 10rpx;
		}
	}
}
</style>